package cn.foolishbird.crow.mybatis.plus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.foolishbird.crow.mybatis.plus.po.CrowPO;

import java.util.Collection;
import java.util.List;
import java.util.function.Supplier;

/**
 * @author Eric
 * @since 2019-05-06
 */
public interface CrowService<E extends CrowPO> extends IService<E> {

    /**
     * 刷新
     *
     * @param entities 实例
     */
    void refreshBySet(Collection<E> entities, Supplier<Collection<E>> query);

}
